<template>
  <div class="left-panel">
    <div class="menu-list">
      <div class="item">
        <div class="avatar">
          <img src="@/assets/images/avatar.jpg">
        </div>
        <div class="name">我</div>
      </div>
    </div>
    <div class="flag">我的朋友</div>
    <div class="menu-list">
      <div class="item">
        <div class="avatar">
          <img src="@/assets/images/avatar.jpg">
        </div>
        <div class="name">我</div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">

</script>


<style scoped lang="scss">
.left-panel {
  width: 200px !important;
  background: #eee;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ccc;


  .menu-list {
    display: flex;
    flex-direction: column;

    .item {
      display: flex;
      padding: 8px 8px 8px 16px;
      width: 100%;
      cursor: pointer;
      font-size: 14px;
      align-items: center;

      .avatar {
        width: 40px;
        border-radius: 4px;
        overflow: hidden;
        height: 40px;
        margin-right: 8px;

        img {
          width: 100%;
        }
      }

      .name {
        font-size: 14px;
        line-height: 20px;
      }
    }

    .item:hover {
      background: #e1e1e1;
    }

    .active {
      background: #ccc;
    }
  }

  .flag {
    font-size: 14px;
    padding: 8px 8px 8px 16px;
    color: #aaa;
    margin-top: 32px;
  }
}
</style>